local jass = require 'jass.common'
local globals = require 'jass.globals'
-- string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string eaxSetting returns sound
local sound = ac.sound.create("子弹击中", {
    _3D = true,
    loop = false,
    outofrange = true,
    path = "bullethit.mp3",
    fadein = 10,
    fadeout = 10,
    EAX = "MissilesEAX",
    channel = '出生',
    duration = 604,
    volume = 64,
})
sound:set_distance(600, 10000)
sound:set_distance_cutoff(3000)
sound:set_cone_angles(0, 0, 127)
sound:set_cone_orientation(0, 0, 0)

local handle = jass.CreateSound( "Abilities\\Spells\\Other\\TinkerRocket\\TinkerMissileLaunch1.wav", false, true, true, 10, 10, "MissilesEAX" )
jass.SetSoundParamsFromLabel( handle, "ClusterRocketsLaunch" )
jass.SetSoundDuration( handle, 871 )
jass.SetSoundDistances(handle, 600.0, 10000.0)
jass.SetSoundDistanceCutoff(handle, 800.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
ac.sound.convert('激光',handle)

local handle = jass.CreateSound("Sound\\Units\\Combat\\MetalMediumSliceFlesh2.wav", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundParamsFromLabel(handle, "MetalMediumSliceFlesh")
jass.SetSoundDuration(handle, 601)
ac.sound.convert('斩击',handle)	

local handle= jass.CreateSound("Buildings\\Orc\\GreatHall\\FortressWhat1.wav", false, false, true, 10, 10, "DefaultEAXON")
jass.SetSoundDuration(handle, 4242)
jass.SetSoundChannel(handle, 1)
jass.SetSoundVolume(handle, 90)
jass.SetSoundPitch(handle, 1.0)
ac.sound.convert('等待',handle)	

local handle= jass.CreateSound( "Abilities\\Spells\\Human\\Avatar\\Avatar.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "Avatar" )
jass.SetSoundDuration( handle, 3199 )
ac.sound.convert('天神下凡',handle)	

local handle = jass.CreateSound("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundDuration(handle, 800)
jass.SetSoundChannel(handle, 11)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 600.0, 10000.0)
jass.SetSoundDistanceCutoff(handle, 800.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('声波', handle)

local handle = jass.CreateSound("Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFire1.wav", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundDuration(handle, 1628)
jass.SetSoundChannel(handle, 11)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 600.0, 10000.0)
jass.SetSoundDistanceCutoff(handle, 800.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('火焰呼吸', handle)

local handle = jass.CreateSound( "Abilities\\Spells\\Other\\Stampede\\StampedeHit1.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "StampedeHit" )
jass.SetSoundDuration( handle, 1286 )
ac.sound.convert('刺击', handle)

local handle = jass.CreateSound("Abilities\\Weapons\\Arrow\\ArrowAttack1.wav", false, true, true, 10, 10, "MissilesEAX")
jass.SetSoundDuration(handle, 672)
jass.SetSoundChannel(handle, 11)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 600.0, 10000.0)
jass.SetSoundDistanceCutoff(handle, 3000.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('箭矢出手', handle)


local handle = jass.CreateSound("Abilities\\Weapons\\Arrow\\ArrowImpact.wav", false, true, true, 10, 10, "MissilesEAX")
jass.SetSoundDuration(handle, 665)
jass.SetSoundChannel(handle, 11)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 600.0, 10000.0)
jass.SetSoundDistanceCutoff(handle, 3000.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('箭矢命中', handle)

local handle = jass.CreateSound("Units\\Human\\Rifleman\\RiflemanAttack1.wav", false, true, true, 10, 10, "MissilesEAX")
jass.SetSoundDuration(handle, 702)
jass.SetSoundChannel(handle, 11)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 600.0, 10000.0)
jass.SetSoundDistanceCutoff(handle, 3000.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('开枪', handle)

local handle = jass.CreateSound( "Abilities\\Spells\\Human\\Polymorph\\PolymorphTarget1.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "Polymorph" )
jass.SetSoundDuration( handle, 1582 )
ac.sound.convert('变形术', handle)

local handle=jass.CreateSound("Abilities\\Weapons\\snapMissile\\SnapDragonMissileLaunch1.wav", false, true, true, 10, 10, "MissilesEAX")
jass. SetSoundParamsFromLabel(handle, "SnapDragonMissileLaunch")
jass. SetSoundDuration(handle, 1196)
ac.sound.convert('巨箭发射', handle)


local handle = jass.CreateSound("war3mapImported\\dingsound.mp3", false, true, true, 10, 10, "DefaultEAXON")
jass.SetSoundChannel(handle, 0)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 600.0, 1600.0)
jass.SetSoundDistanceCutoff(handle, 1600.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('提示', handle)

local handle = jass.CreateSound("Abilities\\Spells\\Orc\\WindWalk\\WindWalk.wav", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundParamsFromLabel(handle, "WindWalk")
jass.SetSoundDuration(handle, 2136)
jass.SetSoundDistances(handle, 600.0, 800.0)
jass.SetSoundDistanceCutoff(handle, 1800.0)
ac.sound.convert('奔跑', handle)

local handle = jass.CreateSound("mogu.wav", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundParamsFromLabel(handle, "WindWalk")
jass.SetSoundDuration(handle, 1000)
jass.SetSoundDistances(handle, 600.0, 800.0)
jass.SetSoundDistanceCutoff(handle, 1800.0)
ac.sound.convert('吃蘑菇', handle)


local handle = jass.CreateSound( "Abilities\\Spells\\Other\\StrongDrink\\StrongDrinkTarget1.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "StrongDrink" )
jass.SetSoundDuration( handle, 2560 )
ac.sound.convert('兴奋', handle)


local handle = jass.CreateSound("psychonauts.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(handle, 0)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 8000.0, 1800.0)
jass.SetSoundDistanceCutoff(handle, 3000.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('插销', handle)


local handle = jass.CreateSound( "Abilities\\Spells\\Other\\Silence\\Silence1.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "Silence" )
jass.SetSoundDuration( handle, 2276 )
ac.sound.convert('沉默', handle)

local handle = jass.CreateSound( "hongzhaji.wav", false, false, true, 10, 10, "MissilesEAX" )
jass.SetSoundParamsFromLabel( handle, "ClusterRocketsLaunch" )
jass.SetSoundDuration( handle, 6000 )
jass.SetSoundVolume(handle, 30)
ac.sound.convert('轰炸预警',handle)

local handle = jass.CreateSound( "fangkong.mp3", false, false, true, 10, 10, "MissilesEAX" )
jass.SetSoundParamsFromLabel( handle, "ClusterRocketsLaunch" )
jass.SetSoundDuration( handle, 4000 )
jass.SetSoundVolume(handle, 60)
ac.sound.convert('防空警报',handle)

local handle = jass.CreateSound( "Abilities\\Spells\\Orc\\LiquidFire\\TrollBatriderLiquidFire1.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "LiquidFireLoop" )
jass.SetSoundDuration( handle, 1724 )
ac.sound.convert('燃烧',handle)

local handle = jass.CreateSound("Flares.wav", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundChannel(handle, 5)
jass.SetSoundVolume(handle, 127)
jass.SetSoundPitch(handle, 1.0)
jass.SetSoundDistances(handle, 1000.0, 2500.0)
jass.SetSoundDistanceCutoff(handle, 2500.0)
jass.SetSoundConeAngles(handle, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(handle, 0.0, 0.0, 0.0)
ac.sound.convert('信号弹',handle)

local handle = jass.CreateSound( "Abilities\\Spells\\Human\\Flare\\FlareTarget3.wav", false, true, true, 10, 10, "SpellsEAX" )
jass.SetSoundParamsFromLabel( handle, "Flare3" )
jass.SetSoundDuration( handle, 946 )
ac.sound.convert('发射',handle)

local handle= jass.CreateSound("awp.mp3", false, true, true, 10, 20, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_awp, 0)
jass.SetSoundVolume(gg_snd_awp, 127)
jass.SetSoundPitch(gg_snd_awp, 1.0)
jass.SetSoundDistances(gg_snd_awp, 1600.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_awp, 3000.0)
jass.SetSoundConeAngles(gg_snd_awp, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_awp, 0.0, 0.0, 0.0)
ac.sound.convert('TRG-42',handle)

local handle= jass.CreateSound("jingbao.mp3", false, false, false, 10, 10, "SpellsEAX")
jass.SetSoundChannel(gg_snd_jingbao, 11)
jass.SetSoundVolume(gg_snd_jingbao, 127)
jass.SetSoundPitch(gg_snd_jingbao, 1.0)
ac.sound.convert('警报',handle)

local handle= jass.CreateSound("awp2.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_awp2, 0)
jass.SetSoundVolume(gg_snd_awp2, 127)
jass.SetSoundPitch(gg_snd_awp2, 1.0)
jass.SetSoundDistances(gg_snd_awp2, 1000.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_awp2, 3000.0)
jass.SetSoundConeAngles(gg_snd_awp2, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_awp2, 0.0, 0.0, 0.0)
ac.sound.convert('TRG-42-Slam',handle)

local handle= jass.CreateSound("M134.wav", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_M134, 0)
jass.SetSoundVolume(gg_snd_M134, 127)
jass.SetSoundPitch(gg_snd_M134, 1.0)
jass.SetSoundDistances(gg_snd_M134, 900.0, 2000.0)
jass.SetSoundDistanceCutoff(gg_snd_M134, 2000.0)
jass.SetSoundConeAngles(gg_snd_M134, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_M134, 0.0, 0.0, 0.0)
ac.sound.convert('M134',handle)

local handle= jass.CreateSound("Svd.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_Svd, 0)
jass.SetSoundVolume(gg_snd_Svd, 127)
jass.SetSoundPitch(gg_snd_Svd, 1.0)
jass.SetSoundDistances(gg_snd_Svd, 1250.0, 2500.0)
jass.SetSoundDistanceCutoff(gg_snd_Svd, 2500.0)
jass.SetSoundConeAngles(gg_snd_Svd, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_Svd, 0.0, 0.0, 0.0)
ac.sound.convert('SVD',handle)

local handle= jass.CreateSound("M3.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_M3, 0)
jass.SetSoundVolume(gg_snd_M3, 127)
jass.SetSoundPitch(gg_snd_M3, 1.0)
jass.SetSoundDistances(gg_snd_M3, 1000.0, 2000.0)
jass.SetSoundDistanceCutoff(gg_snd_M3, 2000.0)
jass.SetSoundConeAngles(gg_snd_M3, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_M3, 0.0, 0.0, 0.0)
ac.sound.convert('M870',handle)

local handle= jass.CreateSound("Famas.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_Famas, 0)
jass.SetSoundVolume(gg_snd_Famas, 127)
jass.SetSoundPitch(gg_snd_Famas, 1.0)
jass.SetSoundDistances(gg_snd_Famas, 800.0, 1800.0)
jass.SetSoundDistanceCutoff(gg_snd_Famas, 1800.0)
jass.SetSoundConeAngles(gg_snd_Famas, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_Famas, 0.0, 0.0, 0.0)
ac.sound.convert('Famas',handle)

local handle= jass.CreateSound("Famas.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_Famas, 0)
jass.SetSoundVolume(gg_snd_Famas, 100)
jass.SetSoundPitch(gg_snd_Famas, 1.0)
jass.SetSoundDistances(gg_snd_Famas, 800.0, 1800.0)
jass.SetSoundDistanceCutoff(gg_snd_Famas, 1800.0)
jass.SetSoundConeAngles(gg_snd_Famas, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_Famas, 0.0, 0.0, 0.0)
ac.sound.convert('Vector',handle)

local handle= jass.CreateSound("M249.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_M249, 0)
jass.SetSoundVolume(gg_snd_M249, 125)
jass.SetSoundPitch(gg_snd_M249, 1.0)
jass.SetSoundDistances(gg_snd_M249, 800.0, 2000.0)
jass.SetSoundDistanceCutoff(gg_snd_M249, 2000.0)
jass.SetSoundConeAngles(gg_snd_M249, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_M249, 0.0, 0.0, 0.0)
ac.sound.convert('M249',handle)

local handle= jass.CreateSound("Abilities\\Spells\\NightElf\\BattleRoar\\BattleRoar.wav", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundParamsFromLabel(gg_snd_BattleRoar, "BattleRoar")
jass.SetSoundDuration(gg_snd_BattleRoar, 1991)
ac.sound.convert('咆哮',handle)

local handle= jass.CreateSound("ak47.mp3", false, false, true, 10, 10, "DefaultEAXON")
jass.SetSoundChannel(gg_snd_ak47, 0)
jass.SetSoundVolume(gg_snd_ak47, 100)
jass.SetSoundPitch(gg_snd_ak47, 1.1)
ac.sound.convert('AK-47',handle)

local handle= jass.CreateSound("ChinaLake.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_ChinaLake, 0)
jass.SetSoundVolume(gg_snd_ChinaLake, 127)
jass.SetSoundPitch(gg_snd_ChinaLake, 1.0)
jass.SetSoundDistances(gg_snd_ChinaLake, 800.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_ChinaLake, 3000.0)
jass.SetSoundConeAngles(gg_snd_ChinaLake, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_ChinaLake, 0.0, 0.0, 0.0)
ac.sound.convert('ChinaLake',handle)

local handle= jass.CreateSound("chinalake1.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_huandan01, 0)
jass.SetSoundVolume(gg_snd_huandan01, 127)
jass.SetSoundPitch(gg_snd_huandan01, 1.0)
jass.SetSoundDistances(gg_snd_huandan01, 800.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_huandan01, 3000.0)
jass.SetSoundConeAngles(gg_snd_huandan01, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_huandan01, 0.0, 0.0, 0.0)
ac.sound.convert('chinalake1',handle)

local handle= jass.CreateSound("chinalake2.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_huandan01, 0)
jass.SetSoundVolume(gg_snd_huandan01, 127)
jass.SetSoundPitch(gg_snd_huandan01, 1.0)
jass.SetSoundDistances(gg_snd_huandan01, 800.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_huandan01, 3000.0)
jass.SetSoundConeAngles(gg_snd_huandan01, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_huandan01, 0.0, 0.0, 0.0)
ac.sound.convert('chinalake2',handle)

local handle= jass.CreateSound("huandan02.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_huandan02, 0)
jass.SetSoundVolume(gg_snd_huandan02, 127)
jass.SetSoundPitch(gg_snd_huandan02, 1.0)
jass.SetSoundDistances(gg_snd_huandan02, 800.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_huandan02, 3000.0)
jass.SetSoundConeAngles(gg_snd_huandan02, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_huandan02, 0.0, 0.0, 0.0)
ac.sound.convert('换弹02',handle)

local handle= jass.CreateSound("crarygun.mp3", false, true, true, 10, 10, "CombatSoundsEAX")
jass.SetSoundChannel(gg_snd_huandan02, 0)
jass.SetSoundVolume(gg_snd_huandan02, 127)
jass.SetSoundPitch(gg_snd_huandan02, 1.0)
jass.SetSoundDistances(gg_snd_huandan02, 800.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_huandan02, 3000.0)
jass.SetSoundConeAngles(gg_snd_huandan02, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_huandan02, 0.0, 0.0, 0.0)
ac.sound.convert('切枪',handle)


local handle= jass.CreateSound("shaozi.mp3", false, true, true, 10, 10, "SpellsEAX")
jass.SetSoundChannel(gg_snd_huandan02, 0)
jass.SetSoundVolume(gg_snd_huandan02, 127)
jass.SetSoundPitch(gg_snd_huandan02, 1.0)
jass.SetSoundDistances(gg_snd_huandan02, 800.0, 3000.0)
jass.SetSoundDistanceCutoff(gg_snd_huandan02, 3000.0)
jass.SetSoundConeAngles(gg_snd_huandan02, 0.0, 0.0, 127)
jass.SetSoundConeOrientation(gg_snd_huandan02, 0.0, 0.0, 0.0)
ac.sound.convert('吹哨',handle)

local handle=jass.CreateSound("xielunyan.wav",false,true,true,10,10,"DefaultEAXON")
jass.SetSoundDuration(handle, 3000)
jass.SetSoundChannel(handle,0)
jass.SetSoundVolume(handle,256)
jass.SetSoundPitch(handle,1.)
jass.SetSoundDistances(handle,1500.,10000.)
jass.SetSoundDistanceCutoff(handle,2500.)
jass.SetSoundConeAngles(handle,0.,0.,127)
jass.SetSoundConeOrientation(handle,0.,0.,0.)
ac.sound.convert('写轮眼', handle)
